import request from '@/utils/request'

// 查询视频管理列表
export function listPlatformVideo(query) {
  return request({
    url: '/business/platformVideo/list',
    method: 'get',
    params: query
  })
}

// 查询视频管理列表
export function getVideoList(query) {
  return request({
    url: '/business/platformVideo/getVideoList',
    method: 'get',
    params: query
  })
}

// 查询视频管理详细
export function getPlatformVideo(baseId) {
  return request({
    url: '/business/platformVideo/' + baseId,
    method: 'get'
  })
}

// 新增视频管理
export function addPlatformVideo(data) {
  return request({
    url: '/business/platformVideo',
    method: 'post',
    data: data
  })
}

// 修改视频管理
export function updatePlatformVideo(data) {
  return request({
    url: '/business/platformVideo',
    method: 'put',
    data: data
  })
}

// 删除视频管理
export function delPlatformVideo(baseId) {
  return request({
    url: '/business/platformVideo/' + baseId,
    method: 'delete'
  })
}
